package com.qianniu.napi.admin.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 拼团
 * </p>
 *
 * @author chenxuebin
 * @since 2018-07-06
 */
@TableName("t_pintuan")
public class Pintuan extends Model<Pintuan> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	private Long gid;
    /**
     * 超时时间
     */
	@TableField("pthours")
	private Integer pthours;

    /**
     * 业务状态@0:未开启2:进行中2:拼团成功3:拼团失败
     */
	private Integer statue;
    /**
     * 启用状态
     */
	private Integer state;

	private Long mid;
	private Long uid;
	private Long mpid;

    /**
     * 开团设置总人数
     */
	private Integer ptotal;
	private Integer type;

    /**
     * 退款方式@0:禁用1:退回余额;2:原路退回
     */
	@TableField("refund_type")
	private Integer refundType;

	@TableField("cheap_price")
	private BigDecimal cheapPrice;

	private BigDecimal price;
	private BigDecimal pinprice;

    /**
     * 开始时间
     */
	private Date starttime;

    /**
     * 截止时间
     */
	private Date endtime;
	private Date createtime;
	private Date modifytime;
	private Long modifier;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Integer getStatue() {
		return statue;
	}

	public void setStatue(Integer statue) {
		this.statue = statue;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Integer getPtotal() {
		return ptotal;
	}

	public void setPtotal(Integer ptotal) {
		this.ptotal = ptotal;
	}

	public BigDecimal getCheapPrice() {
		return cheapPrice;
	}

	public void setCheapPrice(BigDecimal cheapPrice) {
		this.cheapPrice = cheapPrice;
	}

	public Integer getRefundType() {
		return refundType;
	}

	public void setRefundType(Integer refundType) {
		this.refundType = refundType;
	}

	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Integer getPthours() {
		return pthours;
	}

	public void setPthours(Integer pthours) {
		this.pthours = pthours;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getPinprice() {
		return pinprice;
	}

	public void setPinprice(BigDecimal pinprice) {
		this.pinprice = pinprice;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Pintuan{" +
			"id=" + id +
			", gid=" + gid +
			", pthours=" + pthours +
			", statue=" + statue +
			", state=" + state +
			", refundType=" + refundType +
			", createtime=" + createtime +
			", modifytime=" + modifytime +
			"}";
	}
}
